import React from "react";

import { Divider,Card } from 'antd';

import UIActionBar from '../../uicomponents/UIActionBar';

import UIFormView from '../../uicomponents/UIFormView';

/**
 * 班级编辑页面
 */
export default class ClassDefineEditPanel extends React.Component{

    render(){

        const classDefineFormProps = {
            bordered : false,
			ref: (inst) => { this.classDefienFormRef = inst },
			formConfigId: 'ProductUI:classDefineForm',
			inPop: false,
			params : {'campusId' : 0},
			onValuesChange : this.props.onValuesChange,
		};

        return (
            <React.Fragment>
                <Card title="新增班级" extra={<UIActionBar {...this.props} actionGroupId='goBackActionGroup' actionHandler={() => { }} />} >
                    <UIFormView {...classDefineFormProps}/>
                </Card>
                
            </React.Fragment>
        );
    }
}